import { createAPI, createFormAPI } from '@/utils/request'


export const insertCustomer = data => createFormAPI('/admin/customer', 'post', data)
export const deleteCustomer= data => createAPI(`/admin/customer/${data.id}`, 'delete', data)
export const updateCustomer= data => createAPI('/admin/customer', 'put', data)
export const selectCustomer= data => createAPI('/admin/customer', 'get', data)
export const customerNum= data =>createAPI('/admin/customerNum','get',data)
